home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMNSHTMLOptionCollectn.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  126 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMNSHTMLOptionCollectn.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMNSHTMLOptionCollectn_h__
  6. #define __gen_nsIDOMNSHTMLOptionCollectn_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMHTMLOptionElement; /* forward declaration */
  18.  
  19. class nsIDOMHTMLSelectElement; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIDOMNSHTMLOptionCollection */
  23. #define NS_IDOMNSHTMLOPTIONCOLLECTION_IID_STR "1181207b-2337-41a7-8ddf-fbe96461256f"
  24.  
  25. #define NS_IDOMNSHTMLOPTIONCOLLECTION_IID \
  26.   {0x1181207b, 0x2337, 0x41a7, \
  27.     { 0x8d, 0xdf, 0xfb, 0xe9, 0x64, 0x61, 0x25, 0x6f }}
  28.  
  29. class NS_NO_VTABLE nsIDOMNSHTMLOptionCollection : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMNSHTMLOPTIONCOLLECTION_IID)
  33.  
  34.   /* attribute long selectedIndex; */
  35.   NS_IMETHOD GetSelectedIndex(PRInt32 *aSelectedIndex) = 0;
  36.   NS_IMETHOD SetSelectedIndex(PRInt32 aSelectedIndex) = 0;
  37.  
  38.   /* [noscript] void setOption (in long index, in nsIDOMHTMLOptionElement option); */
  39.   NS_IMETHOD SetOption(PRInt32 index, nsIDOMHTMLOptionElement *option) = 0;
  40.  
  41.   /* [noscript] readonly attribute nsIDOMHTMLSelectElement select; */
  42.   NS_IMETHOD GetSelect(nsIDOMHTMLSelectElement * *aSelect) = 0;
  43.  
  44. };
  45.  
  46. /* Use this macro when declaring classes that implement this interface. */
  47. #define NS_DECL_NSIDOMNSHTMLOPTIONCOLLECTION \
  48.   NS_IMETHOD GetSelectedIndex(PRInt32 *aSelectedIndex); \
  49.   NS_IMETHOD SetSelectedIndex(PRInt32 aSelectedIndex); \
  50.   NS_IMETHOD SetOption(PRInt32 index, nsIDOMHTMLOptionElement *option); \
  51.   NS_IMETHOD GetSelect(nsIDOMHTMLSelectElement * *aSelect); 
  52.  
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  54. #define NS_FORWARD_NSIDOMNSHTMLOPTIONCOLLECTION(_to) \
  55.   NS_IMETHOD GetSelectedIndex(PRInt32 *aSelectedIndex) { return _to GetSelectedIndex(aSelectedIndex); } \
  56.   NS_IMETHOD SetSelectedIndex(PRInt32 aSelectedIndex) { return _to SetSelectedIndex(aSelectedIndex); } \
  57.   NS_IMETHOD SetOption(PRInt32 index, nsIDOMHTMLOptionElement *option) { return _to SetOption(index, option); } \
  58.   NS_IMETHOD GetSelect(nsIDOMHTMLSelectElement * *aSelect) { return _to GetSelect(aSelect); } 
  59.  
  60. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  61. #define NS_FORWARD_SAFE_NSIDOMNSHTMLOPTIONCOLLECTION(_to) \
  62.   NS_IMETHOD GetSelectedIndex(PRInt32 *aSelectedIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedIndex(aSelectedIndex); } \
  63.   NS_IMETHOD SetSelectedIndex(PRInt32 aSelectedIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectedIndex(aSelectedIndex); } \
  64.   NS_IMETHOD SetOption(PRInt32 index, nsIDOMHTMLOptionElement *option) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOption(index, option); } \
  65.   NS_IMETHOD GetSelect(nsIDOMHTMLSelectElement * *aSelect) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelect(aSelect); } 
  66.  
  67. #if 0
  68. /* Use the code below as a template for the implementation class for this interface. */
  69.  
  70. /* Header file */
  71. class nsDOMNSHTMLOptionCollection : public nsIDOMNSHTMLOptionCollection
  72. {
  73. public:
  74.   NS_DECL_ISUPPORTS
  75.   NS_DECL_NSIDOMNSHTMLOPTIONCOLLECTION
  76.  
  77.   nsDOMNSHTMLOptionCollection();
  78.  
  79. private:
  80.   ~nsDOMNSHTMLOptionCollection();
  81.  
  82. protected:
  83.   /* additional members */
  84. };
  85.  
  86. /* Implementation file */
  87. NS_IMPL_ISUPPORTS1(nsDOMNSHTMLOptionCollection, nsIDOMNSHTMLOptionCollection)
  88.  
  89. nsDOMNSHTMLOptionCollection::nsDOMNSHTMLOptionCollection()
  90. {
  91.   /* member initializers and constructor code */
  92. }
  93.  
  94. nsDOMNSHTMLOptionCollection::~nsDOMNSHTMLOptionCollection()
  95. {
  96.   /* destructor code */
  97. }
  98.  
  99. /* attribute long selectedIndex; */
  100. NS_IMETHODIMP nsDOMNSHTMLOptionCollection::GetSelectedIndex(PRInt32 *aSelectedIndex)
  101. {
  102.     return NS_ERROR_NOT_IMPLEMENTED;
  103. }
  104. NS_IMETHODIMP nsDOMNSHTMLOptionCollection::SetSelectedIndex(PRInt32 aSelectedIndex)
  105. {
  106.     return NS_ERROR_NOT_IMPLEMENTED;
  107. }
  108.  
  109. /* [noscript] void setOption (in long index, in nsIDOMHTMLOptionElement option); */
  110. NS_IMETHODIMP nsDOMNSHTMLOptionCollection::SetOption(PRInt32 index, nsIDOMHTMLOptionElement *option)
  111. {
  112.     return NS_ERROR_NOT_IMPLEMENTED;
  113. }
  114.  
  115. /* [noscript] readonly attribute nsIDOMHTMLSelectElement select; */
  116. NS_IMETHODIMP nsDOMNSHTMLOptionCollection::GetSelect(nsIDOMHTMLSelectElement * *aSelect)
  117. {
  118.     return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120.  
  121. /* End of implementation class template. */
  122. #endif
  123.  
  124.  
  125. #endif /* __gen_nsIDOMNSHTMLOptionCollectn_h__ */
  126.